import request from '@/utils/request'

export function fetchListWithChildren() {
    return request({
        url: '/partition/list/with-children',
        method: 'get',
    })
}

export function queryFirstLevelPartitions() {
    return request({
        url: '/partition/first-level',
        method: 'get'
    })
}

// 查询指定父分区下的分区
export function queryChildByParentId(parentId) {
    return request({
        url: '/partition/list',
        method: 'get',
        params: {
            parentId
        }
    })
}